package com.baizhi.mall.controller;

import com.baizhi.mall.service.impl.LogServiceImpl;
import com.baizhi.mall.util.PageUtils;
import com.baizhi.mall.util.ResultEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("api/sys/log")
public class LogController {
    @Autowired
    private LogServiceImpl ls;
    @PostMapping("list")
    public ResultEntity showAllLog(@RequestBody Map<String,Object> param){
        PageUtils pageUtils=ls.selectAllByPage(param);
        return ResultEntity.ok(pageUtils);
    }
}
